#!/usr/bin/env bash

#!/usr/bin/env bash
# shell 目录
basepath=$(cd `dirname $0`; pwd)
#
cmdpath=$(cd .; pwd)
docker run -it --rm  --network=host --cpus=1 -m 512M --memory-swap=-1 -v $cmdpath:$cmdpath -w $cmdpath wolferhua/redis:4 redis-cli "$@"

# sudo ln -s  ~/workspace/dockers/wuhua/bash/redis-cli.sh /usr/bin/redis-cli&& sudo chmod +x  /usr/bin/redis-cli